/*
 * Copyright (c) YouYuan 2018. https://gitee.com/you-yuan
 */

package com.yuan.crawler.proxy;

import java.util.List;
import java.util.regex.Pattern;

/**
 * @author YouYuan
 * @version 1.0
 * @CreateDate 2018/7/12 09:30
 * @UpdateDate 2018/7/12 09:30
 */
public interface ProxyServer {

    Pattern IP_PORT_PATTERN = Pattern.compile("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}:\\d{2,5}");
    Pattern IP_PATTERN = Pattern.compile("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}");

    /**
     * 获取新的代理
     * @return
     */
    List<IPProxy> requestNewProxy();

    /**
     * 获取服务商账户余额
     * @return
     */
    Double requestBalance();
}
